<?php
/**
 * Configuration file - contains global variables used across the website
 * 
 * @author Austin Laugesen <austin-laugesen@uiowa.edu>
 * @version 1.0
 * @package unknown
 */
	require('constants.php');
	
/// The following two variables need to be changed for local development!!!
/**
 * URL to the root, or homepage, of the website
 * @global string
 * @name $SITE_URL
 */
//	$SITE_URL = 'http://localhost/website';	
$SITE_URL = 'http://localhost/~Austin/macrohard/website/';
//$SITE_URL = 'http://www.alaug.com/website/';
//$SITE_URL = 'http://localhost/yourpath';

	
/**
 * Path the root of the website, this is the path on the server
 * @global string
 * @name $SITE_URL
 */
$SITE_PATH = 'Users/Austin/Sites/macrohard/website/';
//$SITE_PATH = '/var/www/www.alaug.com/website';
	
/**
 * Path to the css file.
 * @global string
 * @name $CSS_URL
 */
$CSS_URL = $SITE_URL . 'styles/style.css';

$CSS_MOBILE_URL = $SITE_URL . 'styles/mobile.css';

/**
 * Path to the css file.
 * @global string
 * @name $CSS_URL
 */
$CSS_URL2 = $SITE_URL . 'styles/coin-slider.css';	
	
/**
 * URL to database
 * @global string
 * @name $DB_HOST
 */
$DB_HOST = 'localhost';
	
/**
 * username for database
 * @global string
 * @name $DB_USERNAME
 */
$DB_USERNAME = 'macro';
	
/**
 * password for database
 * @global string
 * @name $DB_PASS
 */
$DB_PASS = 'hard';
	
/**
 * database name
 * @global string
 * @name $DB_NAME
 */
$DB_NAME = 'macrohard';

/**
 * URL to the users section
 * @global string
 * @name $USERS_URL
 */
$USERS_URL = $SITE_URL . 'users/';

/**
 * URL to the accounts section
 * @global string
 * @name $ACCOUNTS_URL
 */
$ACCOUNTS_URL = $SITE_URL . 'accounts/';

/**
 * URL to the accounts section
 * @global string
 * @name $DELETE_ACCOUNT_URL
 */	
$DELETE_ACCOUNT_URL = $ACCOUNTS_URL . 'delete.php';

	
/**
 * URL to the accounts section
 * @global string
 * @name $ACTIVATE_ACCOUNT_URL
 */	
$ACTIVATE_ACCOUNT_URL = $ACCOUNTS_URL . 'activate.php';

/**
 * URL to the accounts section
 * @global string
 * @name $AUTH_URL
 */
$AUTH_URL = $SITE_URL . 'authentication/';

/**
 * URL to the transaction section
 * @global string
 * @name $TRANS_URL
 */
$TRANS_URL = $SITE_URL . 'transaction/';
	
/**
 * Website title
 * @global string
 * @name $SITE_TITLE
 */
$SITE_TITLE = 'MacroHARD 22C:180';


/**
 * Set the time out for the user's session, and start it.
 */
if(false == isset($_SESSION)){
	session_set_cookie_params(60 * 20); // 60 seconds * 10  = 600 seconds ~ 10 minutes
	session_start();
}

?>
